Class symantec.itools.db.beans.sqleditor.QueryPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.sqleditor.QueryPanel

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----JComponent
                           |
                           +----JPanel
                                   |
                                   +----symantec.itools.db.beans.sqleditor.QueryPanel

public class QueryPanel
extends JPanel
implements Runnable, PropertyChangeListener, ActionListener

This class will display the SQL text and buttons to execute the SQL statement

Version:
1.0 06/15/97
Author:
Hristo Tonev

Variable Index

 o PROP_SQL_TEXT
 o changeSupport
 o resultChangeSupport

Constructor Index

 o symantec.itools.db.beans.sqleditor.QueryPanel(Connection, String)

Method Index

 o actionPerformed(ActionEvent)
 o addPropertyChangeListener(PropertyChangeListener)
Add a PropertyChangeListener to the listener list.
 o addResultChangeListener(ResultChangeListener)
Add a ResultChangeListeners to the listener list.
 o createButtonsToolbar()
 o createStatement()
 o executeStatement()
 o firePropertyChange(String, Object, Object)
Support for reporting bound property changes.
 o fireResultChange(JPanel, int, int)
Support for reporting a result from a query change.
 o getConnection()
 o getSQLText()
 o getStatement()
 o initializeGUI()
 o main(String[])
 o makeSQLExceptionPanel(SQLException)
 o makeUpdateCountPanel(int)
 o processResults()
 o propertyChange(PropertyChangeEvent)
 o removePropertyChangeListener(PropertyChangeListener)
Remove a PropertyChangeListener from the listener list.
 o removeResultChangeListener(ResultChangeListener)
Remove a ResultChangeListener from the listener list.
 o run()
 o setConnection(Connection)
 o setSQLText(String)
 o setStatement(Statement)

Variables

 o PROP_SQL_TEXT
public static final java.lang.String PROP_SQL_TEXT
 o changeSupport
protected java.beans.PropertyChangeSupport changeSupport
 o resultChangeSupport
protected symantec.itools.db.beans.sqleditor.ResultChangeSupport resultChangeSupport

Constructors

 o QueryPanel
public QueryPanel(Connection connection,
                  String SQLText)

Methods

 o actionPerformed
public void actionPerformed(ActionEvent evt)
 o addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.

Parameters:
listener - The PropertyChangeListener to be added
Overrides:
addPropertyChangeListener in class JComponent
 o addResultChangeListener
public synchronized void addResultChangeListener(ResultChangeListener listener)
Add a ResultChangeListeners to the listener list. The listener is registered for all properties.

Parameters:
listener - The ResultChangeListener to be added
 o createButtonsToolbar
protected void createButtonsToolbar()
 o createStatement
protected synchronized void createStatement() throws SQLException
 o executeStatement
protected synchronized void executeStatement() throws SQLException
 o firePropertyChange
protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)
Support for reporting bound property changes. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.

Overrides:
firePropertyChange in class JComponent
 o fireResultChange
protected void fireResultChange(JPanel panel,
                                int type,
                                int command)
Support for reporting a result from a query change.

 o getConnection
public java.sql.Connection getConnection()
 o getSQLText
public java.lang.String getSQLText()
 o getStatement
public java.sql.Statement getStatement()
 o initializeGUI
protected void initializeGUI()
 o main
public static void main(String[] args)
 o makeSQLExceptionPanel
protected synchronized com.sun.java.swing.JPanel makeSQLExceptionPanel(SQLException ex)
 o makeUpdateCountPanel
protected synchronized com.sun.java.swing.JPanel makeUpdateCountPanel(int updateCount)
 o processResults
protected synchronized void processResults()
 o propertyChange
public void propertyChange(PropertyChangeEvent evt)
 o removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
listener - The PropertyChangeListener to be removed
Overrides:
removePropertyChangeListener in class JComponent
 o removeResultChangeListener
public synchronized void removeResultChangeListener(ResultChangeListener listener)
Remove a ResultChangeListener from the listener list. This removes a ResultChangeListener that was registered for all properties.

Parameters:
listener - The ResultChangeListener to be removed
 o run
public void run()
 o setConnection
public void setConnection(Connection connection)
 o setSQLText
public void setSQLText(String newValue)
 o setStatement
protected void setStatement(Statement statement)

All Packages  Class Hierarchy  This Package  Previous  Next  Index